import request from '@/utils/request'

// 查询助学金列表
export function listZxj(query) {
  return request({
    url: '/student/zxj/list',
    method: 'get',
    params: query
  })
}

// 查询助学金详细
export function getZxj(zxjId) {
  return request({
    url: '/student/zxj/' + zxjId,
    method: 'get'
  })
}

// 新增助学金
export function addZxj(data) {
  return request({
    url: '/student/zxj',
    method: 'post',
    data: data
  })
}

// 修改助学金
export function updateZxj(data) {
  return request({
    url: '/student/zxj',
    method: 'put',
    data: data
  })
}

// 删除助学金
export function delZxj(zxjId) {
  return request({
    url: '/student/zxj/' + zxjId,
    method: 'delete'
  })
}

export function addFile(FormData) {
  return request({
    url: '/student/zxj/uploads',//路径自己调整
    method: 'post',
    data: FormData
  })
}

// 首页信息获取
export function getIndexInfo (){
  return request({
    url: '/student/zxj/getIndexInfo',
    method: 'get'
  })
}
